<template>
	<view style="height: 100%;width: 100%;">
		<!-- <toSafe :bgColor="'#fff'"></toSafe>
		<uni-nav-bar 
			@clickLeft="HandleLeft" 
			color="#111" 
			:fixed="true" 
			leftIcon="left" 
			:border="false" 
			backgroundColor="#fff" 
			:title="''"
			id="navbar"
			>
		</uni-nav-bar> -->
		<web-view :src="url"></web-view>
	</view>
</template>

<script setup>
	import {
		redirectToCheckout,
		loadAirwallex
	} from 'airwallex-payment-elements'
	import {
		onLoad,
		onBackPress
	} from '@dcloudio/uni-app'
	import {
		ref
	} from 'vue'
	import toSafe from '@/compoents/top-safe.vue'
	let url = ref(null);
	let intentId = '',
		secretId = '';
	const HandleLeft = () => {
		uni.navigateBack({
			delta: 1
		});
	}
	onLoad((e) => {
		console.log(e)
		intentId = e.intentId;
		secretId = e.secretId;
		url = "/hybrid/html/local.html?intentId=" + intentId + "&secretId=" + secretId;

	})
	onBackPress((options) => {
		uni.switchTab({
			url: "/pages/mine/mine"
		})
		return true;
	})
</script>

<style>
</style>